package com.six.backend.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @Author: skyler
 * @Date: 2021/11/28 15:13
 */

@Data
@ApiModel("问卷")
public class Questionnaire {

    @ApiModelProperty("问卷编号")
    private Integer id;

    @NotNull
    @ApiModelProperty("问卷名称")
    private String name;

    @ApiModelProperty("创建人")
    private String account;

    @ApiModelProperty("创建人姓名")
    private String userName;


    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @NotNull
    @ApiModelProperty("问题列表")
    private List<Question> topic;
}
